package com.vo;

import java.io.Serializable;

public class Product implements Serializable {

	private Integer ep_id;
	private String ep_name;
	private String ep_description;
	private float ep_price;
	private Integer ep_stock;
	private Integer epc_id;
	private Integer epc_child_id;
	private String ep_file_name ;
	private Integer discount;//折扣
	private Integer hot_pro;//热卖
	private Float now_price;//现价 不在数据库中

	
	public Float getNow_price() {
		return now_price;
	}
	public void setNow_price(Float now_price) {
		this.now_price = now_price;
	}
	
	
	
	public String getEp_description() {
		return ep_description;
	}
	public void setEp_description(String ep_description) {
		this.ep_description = ep_description;
	}
	public float getEp_price() {
		return ep_price;
	}
	public void setEp_price(float ep_price) {
		this.ep_price = ep_price;
	}
	public Integer getEp_stock() {
		return ep_stock;
	}
	public void setEp_stock(Integer ep_stock) {
		this.ep_stock = ep_stock;
	}
	public Integer getEpc_id() {
		return epc_id;
	}
	public void setEpc_id(Integer epc_id) {
		this.epc_id = epc_id;
	}
	public Integer getEpc_child_id() {
		return epc_child_id;
	}
	public void setEpc_child_id(Integer epc_child_id) {
		this.epc_child_id = epc_child_id;
	}
	public Integer getEp_id() {
		return ep_id;
	}
	public void setEp_id(Integer ep_id) {
		this.ep_id = ep_id;
	}
	public String getEp_name() {
		return ep_name;
	}
	public void setEp_name(String ep_name) {
		this.ep_name = ep_name;
	}
	public String getEp_file_name() {
		return ep_file_name;
	}
	public void setEp_file_name(String ep_file_name) {
		this.ep_file_name = ep_file_name;
	}
	//如果没有折扣需进行判断
	public Integer getDiscount() {
		if(this.discount == null){
			discount = 100;
			return discount;
		}
			return discount;
		
	}
	public void setDiscount(Integer discount) {
		this.discount = discount;
	}
	public Integer getHot_pro() {
		return hot_pro;
	}
	public void setHot_pro(Integer hot_pro) {
		this.hot_pro = hot_pro;
	}
	
	
}
